package com.wfcm.service.impl;

import com.wfcm.entity.WfCourseInfoEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfcm.dao.WfVipCardDao;
import com.wfcm.entity.WfVipCardEntity;
import com.wfcm.service.WfVipCardService;



@Service("wfVipCardService")
public class WfVipCardServiceImpl implements WfVipCardService {
	@Autowired
	private WfVipCardDao wfVipCardDao;
	
	@Override
	public WfVipCardEntity queryObject(Integer id){
		return wfVipCardDao.queryObject(id);
	}
	
	@Override
	public WfVipCardEntity querySimpleObject(Integer id){
		return wfVipCardDao.querySimpleObject(id);
	}
	
	@Override
	public List<WfVipCardEntity> queryList(Map<String, Object> map){
		return wfVipCardDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return wfVipCardDao.queryTotal(map);
	}
	
	@Override
	public void save(WfVipCardEntity wfVipCard){
		wfVipCardDao.save(wfVipCard);
	}
	
	@Override
	public void update(WfVipCardEntity wfVipCard){
		wfVipCardDao.update(wfVipCard);
	}
	
	@Override
	public void delete(Integer id){
		wfVipCardDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		wfVipCardDao.deleteBatch(ids);
	}

	@Override
	public List<WfVipCardEntity> querySearchList(Map<String, Object> map) {
		
		return wfVipCardDao.querySearchList(map);
	}
	
	//查询课程包中所有老师信息
	@Override
	public List<WfVipCardEntity> queryTeacherList(Map<String, Object> map) {
		
		return wfVipCardDao.queryTeacherList(map);
	}
	
	@Override
	public List<WfVipCardEntity> queryCategoryList(Map<String, Object> map) {
		
		//return wfVipCardDao.querySearchList(map);
		return wfVipCardDao.queryCategoryList(map);
	}

	@Override
	public List<WfVipCardEntity> queryCourseList(Map<String, Object> map) {
		
		return wfVipCardDao.queryCourseList(map);
	}

	@Override
	public List<WfCourseInfoEntity> queryOnlyCourseList(Map<String, Object> map) {

		return wfVipCardDao.queryOnlyCourseList(map);
	}

}
